package com.bree.erp.service;

import java.util.List;
import java.util.Set;

import com.bree.erp.entity.GroupType;
import com.bree.erp.entity.Permission;
import com.bree.erp.entity.PermissionId;
import com.bree.erp.entity.Project;

public interface PermissionService extends Crud<Permission, PermissionId>{

	Permission create(String userId, Long projectId, Set<GroupType> groups);
	Permission create(String userId, Long projectId);
	Permission read(PermissionId id);
	Permission update(PermissionId id, Set<GroupType> groups);
	void delete(PermissionId id);
	
	List<Project> listProjects(String email);
}
